#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int lenth(char* arr)
{
	int i = 0;
	while (*arr != '\0')
	{
		i++; arr++;
	}
	return i;
}
int main()
{
	char arr[80] = { 0 };
	while (gets(arr) != EOF)
	{
		int num = lenth(arr);
		printf("%d\n", num);
	}

	/*char arr[80] = { 0 };
	while (1)
	{
		if (scanf("%s", arr) != '\n')
		{
			int num=lenth(arr);
			printf("%d\n", num);
		}
		else
		{
			break;
		}
	}*/
	return 0;
}